import {ref} from 'vue'
import {TableColumnProps} from '../../../components/base/table/table-props'
export const columns = ref<Array<TableColumnProps>>([
    {
        title:'所属社区',
        dataIndex:'community'
    },{
        title:'任务服务项',
        dataIndex:'service'
    },{
        title:'任务对象姓名',
        dataIndex:'name'
    },{
        title:'服务状态',
        dataIndex:'status'
    },{
        title:'奖励积分',
        dataIndex:'integral'
    },{
        title:'任务开始时间',
        dataIndex:'startTime',
        customRender: ({ record }) =>
            record.startTime ? record.startTime.replace('T', ' ') : '',
    },{
        title:'任务结束时间',
        dataIndex:'endTime',
        customRender: ({ record }) =>
            record.endTime ? record.endTime.replace('T', ' ') : '',
    },{
        title:'创建时间',
        dataIndex:'createTime',
        customRender: ({ record }) =>
            record.createTime ? record.createTime.replace('T', ' ') : '',
    },{
        title:'操作',
        dataIndex:'action'
    }
])
